package com.felight.ems.collections;

import java.util.*;

public class ArrayLists {
	public static void main(String[] args) {
		List<Number> myLists = new ArrayList<Number>();
		myLists.add(new Integer(20));
		myLists.add(89.00);
		myLists.add(45.9f);
		myLists.add(new Long(11115888));
		myLists.add(new Short((short)190));
		System.out.println(myLists);
		System.out.println(myLists.size());
		
		List<String> unixDev = new ArrayList<String>();
		unixDev.add("Ken Thompson");
		unixDev.add("Dennis Ritchie");
		unixDev.add("Brian Kernighan");
		unixDev.add("Douglas Mcllroy");
		unixDev.add("Michael Lesk");
		unixDev.add("Joe Ossanna");
		System.out.println("Unsorted names:"+unixDev);
		Collections.sort(unixDev);
		System.out.println("Sorted names:"+unixDev);
	}

}
